﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WAPA.Framework
{
    /// <summary>
    /// The message that report the outcome of a worker task.
    /// </summary>
    public class WorkerTaskReportMessage
    {
        public string TaskId { get; set; }
        //How long did the task take.
        public long TaskDuration { get; set; }
        //How fast was it uploaded to blob storage
        public long OutputTransferDuration { get; set; }
        public long OutputSize { get; set; }

        //These fields can be correlated using the TaskId from the originating WorkerTaskMessage but we keep them in for simplicity.
        public string DeploymentId { get; set; }
        public string StorageBlobEndPointUrl { get; set; }
        public string StorageAccountName { get; set; }
        public string StorageAccessKey { get; set; }
        public string BlobContainerName { get; set; }
    }
}
